package com.gaoyubo.service;

import com.gaoyubo.entity.User;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Optional;

public interface UserService {
    List<User> getList();
    Optional<User> findById(Integer id);
    void deleteById(Integer id);
    <S extends User> S saveAndFlush(S s);
    Optional<User> findByName(String name);
}
